/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package javabahia.dao;

import java.io.Serializable;
import java.util.List;

/**
 *interface com todas as ações do crud
 * @param <T> 
 * @author otaviojava - otaviojava@java.net
 */
public interface CRUD<T> extends Serializable {
    
    
    public void create(T bean);
    
    public void remove(T bean);
    
    public void update(T bean);
    
    public T retrieve(Object id);
    
    public List<T> listAll();
    
    public List<T> listByIndex(Object index);
          
}
